/*
 * Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 */
package cn.com.recloud.bbs.dao;

import cn.com.recloud.bbs.entity.bbs_article;
import cn.com.recloud.bbs.vo.AppListArticVO;
import cn.com.recloud.bbs.vo.CampaignAppVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wayne wang
 * @date 2020-06-24
 */
public interface SearchArticleDao extends BaseMapper<bbs_article> {

    List<bbs_article> findTopTen();

    /**
     * @param page  分页条件
     * @param name  查询条件
     * @return
     */
    List<AppListArticVO> findAllArticle(@Param("page") IPage<AppListArticVO> page,
                                        @Param("name") String name);

}
